package com.jeffse.light.stream.app;

import com.jeffse.light.stream.core.server.StreamServer;
import lombok.extern.slf4j.Slf4j;
import org.apache.logging.log4j.ThreadContext;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@Slf4j
public class StreamApp {
    public static void main(String[] args) throws Exception {
        ThreadContext.put("ROUTINGKEY", "main");
        SpringApplication.run(StreamApp.class, args);
        new StreamServer().start(9910);
    }
}
